<!DOCTYPE html>
<html>
<!-- Created by GNU Texinfo 7.1, https://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- Copyright © 1988-2023 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with the
Invariant Sections being "Funding Free Software", the Front-Cover
Texts being (a) (see below), and with the Back-Cover Texts being (b)
(see below).  A copy of the license is included in the section entitled
"GNU Free Documentation License".

(a) The FSF's Front-Cover Text is:

A GNU Manual

(b) The FSF's Back-Cover Text is:

You have freedom to copy and modify this GNU Manual, like GNU
     software.  Copies published by the Free Software Foundation raise
     funds for GNU development. -->
<title>GIMPLE_COND (GNU Compiler Collection (GCC) Internals)</title>

<meta name="description" content="GIMPLE_COND (GNU Compiler Collection (GCC) Internals)">
<meta name="keywords" content="GIMPLE_COND (GNU Compiler Collection (GCC) Internals)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta name="viewport" content="width=device-width,initial-scale=1">

<link href="index.html" rel="start" title="Top">
<link href="Option-Index.html" rel="index" title="Option Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Tuple-specific-accessors.html" rel="up" title="Tuple specific accessors">
<link href="GIMPLE_005fDEBUG.html" rel="next" title="GIMPLE_DEBUG">
<link href="GIMPLE_005fCATCH.html" rel="prev" title="GIMPLE_CATCH">
<style type="text/css">
<!--
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
span:hover a.copiable-link {visibility: visible}
strong.def-name {font-family: monospace; font-weight: bold; font-size: larger}
-->
</style>


</head>

<body lang="en">
<div class="subsection-level-extent" id="GIMPLE_005fCOND">
<div class="nav-panel">
<p>
Next: <a href="GIMPLE_005fDEBUG.html" accesskey="n" rel="next"><code class="code">GIMPLE_DEBUG</code></a>, Previous: <a href="GIMPLE_005fCATCH.html" accesskey="p" rel="prev"><code class="code">GIMPLE_CATCH</code></a>, Up: <a href="Tuple-specific-accessors.html" accesskey="u" rel="up">Tuple specific accessors</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<h4 class="subsection" id="GIMPLE_005fCOND-1"><span>12.8.6 <code class="code">GIMPLE_COND</code><a class="copiable-link" href="#GIMPLE_005fCOND-1"> &para;</a></span></h4>
<a class="index-entry-id" id="index-GIMPLE_005fCOND"></a>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_002agimple_005fbuild_005fcond"><span class="category-def">GIMPLE function: </span><span><code class="def-type">gcond</code> <strong class="def-name">*gimple_build_cond</strong> <code class="def-code-arguments">( enum tree_code pred_code, tree lhs, tree rhs, tree t_label, tree f_label)</code><a class="copiable-link" href="#index-_002agimple_005fbuild_005fcond"> &para;</a></span></dt>
<dd><p>Build a <code class="code">GIMPLE_COND</code> statement.  <code class="code">A</code> <code class="code">GIMPLE_COND</code> statement compares
<code class="code">LHS</code> and <code class="code">RHS</code> and if the condition in <code class="code">PRED_CODE</code> is true, jump to
the label in <code class="code">t_label</code>, otherwise jump to the label in <code class="code">f_label</code>.
<code class="code">PRED_CODE</code> are relational operator tree codes like <code class="code">EQ_EXPR</code>,
<code class="code">LT_EXPR</code>, <code class="code">LE_EXPR</code>, <code class="code">NE_EXPR</code>, etc.
</p></dd></dl>


<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_002agimple_005fbuild_005fcond_005ffrom_005ftree"><span class="category-def">GIMPLE function: </span><span><code class="def-type">gcond</code> <strong class="def-name">*gimple_build_cond_from_tree</strong> <code class="def-code-arguments">(tree cond, tree t_label, tree f_label)</code><a class="copiable-link" href="#index-_002agimple_005fbuild_005fcond_005ffrom_005ftree"> &para;</a></span></dt>
<dd><p>Build a <code class="code">GIMPLE_COND</code> statement from the conditional expression
tree <code class="code">COND</code>.  <code class="code">T_LABEL</code> and <code class="code">F_LABEL</code> are as in <code class="code">gimple_build_cond</code>.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gimple_005fcond_005fcode"><span class="category-def">GIMPLE function: </span><span><code class="def-type">enum tree_code</code> <strong class="def-name">gimple_cond_code</strong> <code class="def-code-arguments">(gimple g)</code><a class="copiable-link" href="#index-gimple_005fcond_005fcode"> &para;</a></span></dt>
<dd><p>Return the code of the predicate computed by conditional
statement <code class="code">G</code>.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gimple_005fcond_005fset_005fcode"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gimple_cond_set_code</strong> <code class="def-code-arguments">(gcond *g, enum tree_code code)</code><a class="copiable-link" href="#index-gimple_005fcond_005fset_005fcode"> &para;</a></span></dt>
<dd><p>Set <code class="code">CODE</code> to be the predicate code for the conditional statement
<code class="code">G</code>.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gimple_005fcond_005flhs"><span class="category-def">GIMPLE function: </span><span><code class="def-type">tree</code> <strong class="def-name">gimple_cond_lhs</strong> <code class="def-code-arguments">(gimple g)</code><a class="copiable-link" href="#index-gimple_005fcond_005flhs"> &para;</a></span></dt>
<dd><p>Return the <code class="code">LHS</code> of the predicate computed by conditional statement
<code class="code">G</code>.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gimple_005fcond_005fset_005flhs"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gimple_cond_set_lhs</strong> <code class="def-code-arguments">(gcond *g, tree lhs)</code><a class="copiable-link" href="#index-gimple_005fcond_005fset_005flhs"> &para;</a></span></dt>
<dd><p>Set <code class="code">LHS</code> to be the <code class="code">LHS</code> operand of the predicate computed by
conditional statement <code class="code">G</code>.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gimple_005fcond_005frhs"><span class="category-def">GIMPLE function: </span><span><code class="def-type">tree</code> <strong class="def-name">gimple_cond_rhs</strong> <code class="def-code-arguments">(gimple g)</code><a class="copiable-link" href="#index-gimple_005fcond_005frhs"> &para;</a></span></dt>
<dd><p>Return the <code class="code">RHS</code> operand of the predicate computed by conditional
<code class="code">G</code>.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gimple_005fcond_005fset_005frhs"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gimple_cond_set_rhs</strong> <code class="def-code-arguments">(gcond *g, tree rhs)</code><a class="copiable-link" href="#index-gimple_005fcond_005fset_005frhs"> &para;</a></span></dt>
<dd><p>Set <code class="code">RHS</code> to be the <code class="code">RHS</code> operand of the predicate computed by
conditional statement <code class="code">G</code>.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gimple_005fcond_005ftrue_005flabel"><span class="category-def">GIMPLE function: </span><span><code class="def-type">tree</code> <strong class="def-name">gimple_cond_true_label</strong> <code class="def-code-arguments">(const gcond *g)</code><a class="copiable-link" href="#index-gimple_005fcond_005ftrue_005flabel"> &para;</a></span></dt>
<dd><p>Return the label used by conditional statement <code class="code">G</code> when its
predicate evaluates to true.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gimple_005fcond_005fset_005ftrue_005flabel"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gimple_cond_set_true_label</strong> <code class="def-code-arguments">(gcond *g, tree label)</code><a class="copiable-link" href="#index-gimple_005fcond_005fset_005ftrue_005flabel"> &para;</a></span></dt>
<dd><p>Set <code class="code">LABEL</code> to be the label used by conditional statement <code class="code">G</code> when
its predicate evaluates to true.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gimple_005fcond_005fset_005ffalse_005flabel"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gimple_cond_set_false_label</strong> <code class="def-code-arguments">(gcond *g, tree label)</code><a class="copiable-link" href="#index-gimple_005fcond_005fset_005ffalse_005flabel"> &para;</a></span></dt>
<dd><p>Set <code class="code">LABEL</code> to be the label used by conditional statement <code class="code">G</code> when
its predicate evaluates to false.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gimple_005fcond_005ffalse_005flabel"><span class="category-def">GIMPLE function: </span><span><code class="def-type">tree</code> <strong class="def-name">gimple_cond_false_label</strong> <code class="def-code-arguments">(const gcond *g)</code><a class="copiable-link" href="#index-gimple_005fcond_005ffalse_005flabel"> &para;</a></span></dt>
<dd><p>Return the label used by conditional statement <code class="code">G</code> when its
predicate evaluates to false.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gimple_005fcond_005fmake_005ffalse"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gimple_cond_make_false</strong> <code class="def-code-arguments">(gcond *g)</code><a class="copiable-link" href="#index-gimple_005fcond_005fmake_005ffalse"> &para;</a></span></dt>
<dd><p>Set the conditional <code class="code">COND_STMT</code> to be of the form &rsquo;if (1 == 0)&rsquo;.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-gimple_005fcond_005fmake_005ftrue"><span class="category-def">GIMPLE function: </span><span><code class="def-type">void</code> <strong class="def-name">gimple_cond_make_true</strong> <code class="def-code-arguments">(gcond *g)</code><a class="copiable-link" href="#index-gimple_005fcond_005fmake_005ftrue"> &para;</a></span></dt>
<dd><p>Set the conditional <code class="code">COND_STMT</code> to be of the form &rsquo;if (1 == 1)&rsquo;.
</p></dd></dl>

</div>
<hr>
<div class="nav-panel">
<p>
Next: <a href="GIMPLE_005fDEBUG.html"><code class="code">GIMPLE_DEBUG</code></a>, Previous: <a href="GIMPLE_005fCATCH.html"><code class="code">GIMPLE_CATCH</code></a>, Up: <a href="Tuple-specific-accessors.html">Tuple specific accessors</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html" title="Index" rel="index">Index</a>]</p>
</div>



</body>
</html>
